<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.source.js"></script>
    <script src="HtmlUtil.js"></script>
</head>
<body>
<textarea style="width: 300px; height: 200px;" id="textid"></textarea>
<input type="button" value="submit" onclick="setList();" id="btn">
<div id="list" ></div>
<script>
    document.cookie="sessionid:jdfdswe2dsfsdf323";
    function setList() {
        var text=$("#textid").val();
        var $list=$("#list");

        $list.append( HtmlUtil.htmlEncodeByRegExp(text));
    }

www.a.com/del?id=1;
</script>

</body>
</html>